<?php
// filename : module/Users/src/Users/Form/OfflinemailForm.php
namespace Users\Form;

use Zend\Form\Form;

class OfflinemailForm extends Form
{
	public function __construct($name = null)
	{
		parent::__construct('OfflineForm');
		$this->setAttribute('method', 'post');
		$this->setAttribute('enctype','multipart/form-data');
			
		$this->add(array(
				'name' => 'users',
				'type' => 'Select',
				'options' => array(
						'label' => 'To User',
				),
		));
		$this->add(array(
				'name' => 'subject',
				'attributes' => array(
						'type' => 'text',
				),
				'options' => array(
						'label' => 'Subject',
				),
				'attributes' => array(
						'required' => 'required'
				),
				
		));
			
		$this->add(array(
				'name' => 'message',
				'type' => 'Textarea',
				
				'options' => array(
						'label' => 'Message',
				),
		));

		$this->add(array(
				'name' => 'submit',
				'type' => 'submit',
				'attributes' => array(
						'value' => 'Send',
				),

		));
	}
}

?>